﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Everynet;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.Linq.Expressions;
using System.Web.Mvc.Html;

namespace Everynet.Models
{
    public class signInModel
    {
        [StringLength(50, ErrorMessage = "Max. 50 characters allowed")]
        [Required(ErrorMessage = "Please enter Email")]
        [Display(Name = "Email")]
        [RegularExpression("^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$", ErrorMessage = "please enter valid Email")]
        public string Email { get; set; }

        [Required(ErrorMessage = "Please enter Password")]
        public string Password { get; set; }
    }
}